<?php

namespace app\admin\validate;

use think\Validate;

class CustomerService extends Validate
{
    protected $rule = [
        //['user_id',      'require|number|>:0',   '用户错误|用户错误|用户错误'],
        ['money',        'require|number|>:0',   '金额错误|金额错误|金额错误'],
        //['remark',       'require',              '备注不能为空'],
        ['channel',      'require|number|in:2',  '金额类型错误|金额类型错误|金额类型错误'],
        ['toward',       'require|number|in:1',  '操作类型错误|操作类型错误|操作类型错误'],
    ];

    protected $scene = [
        'topup'     => ['money', 'channel', 'toward'],
    ];
}
